package com.gitee.liang521.generate.api.pojo.maps;

import com.gitee.liang521.generate.api.pojo.dto.ColumnDto;
import com.gitee.liang521.generate.api.pojo.entity.ColumnEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author liang zai
 * @date 2021/9/16 17:09
 * @description
 */
@Mapper(componentModel = "spring")
public interface ColumnMaps {
    /**
     * po to vo
     * @param v
     * @return
     */
     List<ColumnDto> poToDto(List<ColumnEntity> v);

    /**
     * po to vo
     * @param v
     * @return
     */
    ColumnDto poToDto(ColumnEntity v);

}
